package service;

import java.util.List;
import java.util.Map;

import model.Comment;

public abstract interface CommentService {

	//根据用户的id获取评论列表
	public abstract Map<String, Object> getCommentByUser(long userId);
	
	//根据用户的id获取分数的平均值
	public abstract Integer getCommentAverageScoreByUser(long userId);
	
	//根据订单id获取评论内容
	public abstract List<Comment> getCommentByOrderId(String orderId);
	
	//添加评论
	public abstract int addComment(Comment comment);
	
}